import { View } from '@tarojs/components';
import Taro from '@tarojs/taro';
import LoginForm from './components/LoginForm/index';

import './index.scss';

/**
 * 设置页面
 * @returns
 */
const Login = () => {
  const onLoginSuccess = () => {
    Taro.navigateBack();
  };
  return (
    <View className="login-container page-container">
      {/* <NavBar showBackBtn title="登录" style={{ color: '#333' }} /> */}
      <LoginForm showBackBtn={1} onLoginSuccess={onLoginSuccess} />
    </View>
  );
};
export default Login;
